package com.wk.springboot.spring.profile;

import com.wk.springboot.spring.bean.Color;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * Author: Administrator
 * Date: 2020/11/25 : 21:34
 * Description:
 */

@Configuration
@Profile("test")
public class TestProfile {

    @Bean
    public Color color(){
        System.out.println("这是test环境");
        Color color = new Color();
        color.setName("test");
        return color;
    }

}
